package cn.kgc.service;

import cn.kgc.pojo.Role;
import cn.kgc.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface UserService {
    //登录
    public User login(String userCode, String password);

    //查询所有用户
    public List<User> queryAllUser(String userName,String userType);

    //修改用户
    public Integer upDateUser(User user);

    //查询指定用户
    public User queryByIdUser(Integer id);

    //常看用户
    public List<User> queryOftenUser();

    //用户无效化
    public Integer deleteUser(Integer id);

    //添加用户
    public Integer addUser(User user);


    public List<Role> queryRole(Integer roleId);

}
